﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogAug22.Models
{
    public class MyPost
    {
        public static int NextID = 0;
        public int ID { get; set; }
        public string Name { get; set; }
        public string Post { get; set; }
        public string Blog { get; set; }
        public string MyDate { get; set; }

        public MyPost(string name, string post, string blog)
        {
            this.ID = NextID++;
            this.Name = name;
            this.Post = post;
            this.Blog = blog;

        }
        public MyPost()
        {

        }
    }
}